/*! ******************************************************************************
 *
 * Created on 2022-08-01
 *
 * Copyright(c) YuZhou Big Data Laboratory CO.,Ltd, 2022.  All rights reserved.
 *
 *******************************************************************************
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 ******************************************************************************/
package org.yzbdl.lanius.ui.plugindto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author yzbdl@yzbdl.ac.cn
 * @version: 1.0
 * @Date 2020/9/29 10:55
 **/
@JsonIgnoreProperties(ignoreUnknown = true)
public class PluginDto {

    /**
     * code : 001000
     * msg : success
     * timestamp : 1601348058333
     * data : {"content":[{"id":"63","plugin_name":"检验字段的值","plugin_meta_id":"SIMPLE_EVAL1","plugin_type_code_str":"JobEntry","version":"1.0.0.0","description":"检验字段的值","download_number":null,"avg_score":null,"plugin_size":"812668","charge_type":0,"plugin_path":null,"icon_path":"group1/M00/00/24/CgoMaF9q626AGgG3AAAEvQ2oSmo673.svg","user_id":"117"},{"id":"61","plugin_name":"检验字段的值","plugin_meta_id":"SIMPLE_EVAL","plugin_type_code_str":"JobEntry","version":"1.0.0.0","description":"检验字段的值","download_number":"10","avg_score":3,"plugin_size":"812666","charge_type":0,"plugin_path":null,"icon_path":"group1/M00/00/20/CgoMaF9jOmqAa8_SAAAEvQ2oSmo279.svg","user_id":"117"},{"id":"61","plugin_name":"检验字段的值","plugin_meta_id":"SIMPLE_EVAL","plugin_type_code_str":"JobEntry","version":"1.0.0.1","description":"检验字段的值","download_number":"0","avg_score":null,"plugin_size":"812666","charge_type":0,"plugin_path":"group2/M00/00/0B/CgoMaF9jPIeAPWQuAAF7xfl9p24481.zip","icon_path":"group1/M00/00/20/CgoMaF9jPIeAXYMUAAAEvQ2oSmo629.svg","user_id":"117"},{"id":"25","plugin_name":"增加序列","plugin_meta_id":"Sequence","plugin_type_code_str":"Step","version":null,"description":null,"download_number":null,"avg_score":null,"plugin_size":null,"charge_type":null,"plugin_path":null,"icon_path":null,"user_id":"117"},{"id":"180","plugin_name":"脚本","plugin_meta_id":"Script","plugin_type_code_str":"Step","version":"1.0.0.0","description":"<p>脚本<br><\/p>","download_number":"3","avg_score":5,"plugin_size":"159572","charge_type":0,"plugin_path":"group2/M00/00/00/CgADBV3wWLyAbpw2AARHYRa4ayI901.zip","icon_path":"group1/M00/00/02/CgADBF3wS7iAD6-3AAADtqOOa2c221.png","user_id":"112"},{"id":"135","plugin_name":"字段拼接","plugin_meta_id":"ConcatFields","plugin_type_code_str":"Step","version":"1.0.0.0","description":"<p>字段拼接<br><\/p>","download_number":"5","avg_score":5,"plugin_size":"50903","charge_type":0,"plugin_path":"group2/M00/00/00/CgADBV3vUWiAXnwwAAFxrEqsDPI210.zip","icon_path":"group1/M00/00/00/CgADBF3vR5mAfvsJAAAC33NYkqw822.png","user_id":"112"},{"id":"62","plugin_name":"Cassandra输入","plugin_meta_id":"CassandraInput","plugin_type_code_str":"Step","version":"1.0.0.1","description":"从Cassandra表读取数据","download_number":null,"avg_score":null,"plugin_size":"961455","charge_type":0,"plugin_path":null,"icon_path":"group1/M00/00/21/CgoMaF9jaJOAI2IlAAATE1oms10511.svg","user_id":"117"},{"id":"143","plugin_name":"唯一行 (哈希值)","plugin_meta_id":"UniqueRowsByHashSet","plugin_type_code_str":"Step","version":"1.0.0.0","description":"<p>唯一行 (哈希值)<br><\/p>","download_number":"8","avg_score":5,"plugin_size":"30361","charge_type":0,"plugin_path":"group2/M00/00/00/CgADBV3vVsKAXVqVAADSzMIy9aQ245.zip","icon_path":"group1/M00/00/01/CgADBF3vVGWAXCcaAAAEJ8Byi10163.png","user_id":"112"},{"id":"303","plugin_name":"Talend 作业执行","plugin_meta_id":"TALEND_JOB_EXEC","plugin_type_code_str":"JobEntry","version":"1.0.0.0","description":"<p><span style=\"font-size: 14px;\">Talend 作业执行<\/span><br><\/p>","download_number":"2","avg_score":5,"plugin_size":"22850","charge_type":0,"plugin_path":"group2/M00/00/01/CgADBV3xrA2AFl98AAClmF_ybYg707.zip","icon_path":"group1/M00/00/07/CgADBF3xmlmADHGAAAACqFhGTBs099.png","user_id":"112"},{"id":"304","plugin_name":"用Syslog发送信息","plugin_meta_id":"SYSLOG","plugin_type_code_str":"JobEntry","version":"1.0.0.0","description":"<p><span style=\"font-size: 14px;\">使用Syslog发送信息<\/span><br><\/p>","download_number":"2","avg_score":5,"plugin_size":"377273","charge_type":0,"plugin_path":"group2/M00/00/01/CgADBV3xrBeAaPCYAAYP4_8cBnE882.zip","icon_path":"group1/M00/00/07/CgADBF3xmr-APmhlAAAEKjMb1tw191.png","user_id":"112"}],"totalElements":"276","totalPages":28,"last":false,"number":0,"size":10,"sort":null,"numberOfElements":10,"first":true}
     */

    public String code;
    public String msg;
    public long timestamp;
    public DataBean data;

    /**
     * 获取code
     *
     * @return code
     */
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 获取msg
     *
     * @return msg
     */
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    /**
     * 获取timestamp
     *
     * @return timestamp
     */
    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    /**
     * 获取data
     *
     * @return data
     */
    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class DataBean {
        /**
         * content : [{"id":"63","plugin_name":"检验字段的值","plugin_meta_id":"SIMPLE_EVAL1","plugin_type_code_str":"JobEntry","version":"1.0.0.0","description":"检验字段的值","download_number":null,"avg_score":null,"plugin_size":"812668","charge_type":0,"plugin_path":null,"icon_path":"group1/M00/00/24/CgoMaF9q626AGgG3AAAEvQ2oSmo673.svg","user_id":"117"},{"id":"61","plugin_name":"检验字段的值","plugin_meta_id":"SIMPLE_EVAL","plugin_type_code_str":"JobEntry","version":"1.0.0.0","description":"检验字段的值","download_number":"10","avg_score":3,"plugin_size":"812666","charge_type":0,"plugin_path":null,"icon_path":"group1/M00/00/20/CgoMaF9jOmqAa8_SAAAEvQ2oSmo279.svg","user_id":"117"},{"id":"61","plugin_name":"检验字段的值","plugin_meta_id":"SIMPLE_EVAL","plugin_type_code_str":"JobEntry","version":"1.0.0.1","description":"检验字段的值","download_number":"0","avg_score":null,"plugin_size":"812666","charge_type":0,"plugin_path":"group2/M00/00/0B/CgoMaF9jPIeAPWQuAAF7xfl9p24481.zip","icon_path":"group1/M00/00/20/CgoMaF9jPIeAXYMUAAAEvQ2oSmo629.svg","user_id":"117"},{"id":"25","plugin_name":"增加序列","plugin_meta_id":"Sequence","plugin_type_code_str":"Step","version":null,"description":null,"download_number":null,"avg_score":null,"plugin_size":null,"charge_type":null,"plugin_path":null,"icon_path":null,"user_id":"117"},{"id":"180","plugin_name":"脚本","plugin_meta_id":"Script","plugin_type_code_str":"Step","version":"1.0.0.0","description":"<p>脚本<br><\/p>","download_number":"3","avg_score":5,"plugin_size":"159572","charge_type":0,"plugin_path":"group2/M00/00/00/CgADBV3wWLyAbpw2AARHYRa4ayI901.zip","icon_path":"group1/M00/00/02/CgADBF3wS7iAD6-3AAADtqOOa2c221.png","user_id":"112"},{"id":"135","plugin_name":"字段拼接","plugin_meta_id":"ConcatFields","plugin_type_code_str":"Step","version":"1.0.0.0","description":"<p>字段拼接<br><\/p>","download_number":"5","avg_score":5,"plugin_size":"50903","charge_type":0,"plugin_path":"group2/M00/00/00/CgADBV3vUWiAXnwwAAFxrEqsDPI210.zip","icon_path":"group1/M00/00/00/CgADBF3vR5mAfvsJAAAC33NYkqw822.png","user_id":"112"},{"id":"62","plugin_name":"Cassandra输入","plugin_meta_id":"CassandraInput","plugin_type_code_str":"Step","version":"1.0.0.1","description":"从Cassandra表读取数据","download_number":null,"avg_score":null,"plugin_size":"961455","charge_type":0,"plugin_path":null,"icon_path":"group1/M00/00/21/CgoMaF9jaJOAI2IlAAATE1oms10511.svg","user_id":"117"},{"id":"143","plugin_name":"唯一行 (哈希值)","plugin_meta_id":"UniqueRowsByHashSet","plugin_type_code_str":"Step","version":"1.0.0.0","description":"<p>唯一行 (哈希值)<br><\/p>","download_number":"8","avg_score":5,"plugin_size":"30361","charge_type":0,"plugin_path":"group2/M00/00/00/CgADBV3vVsKAXVqVAADSzMIy9aQ245.zip","icon_path":"group1/M00/00/01/CgADBF3vVGWAXCcaAAAEJ8Byi10163.png","user_id":"112"},{"id":"303","plugin_name":"Talend 作业执行","plugin_meta_id":"TALEND_JOB_EXEC","plugin_type_code_str":"JobEntry","version":"1.0.0.0","description":"<p><span style=\"font-size: 14px;\">Talend 作业执行<\/span><br><\/p>","download_number":"2","avg_score":5,"plugin_size":"22850","charge_type":0,"plugin_path":"group2/M00/00/01/CgADBV3xrA2AFl98AAClmF_ybYg707.zip","icon_path":"group1/M00/00/07/CgADBF3xmlmADHGAAAACqFhGTBs099.png","user_id":"112"},{"id":"304","plugin_name":"用Syslog发送信息","plugin_meta_id":"SYSLOG","plugin_type_code_str":"JobEntry","version":"1.0.0.0","description":"<p><span style=\"font-size: 14px;\">使用Syslog发送信息<\/span><br><\/p>","download_number":"2","avg_score":5,"plugin_size":"377273","charge_type":0,"plugin_path":"group2/M00/00/01/CgADBV3xrBeAaPCYAAYP4_8cBnE882.zip","icon_path":"group1/M00/00/07/CgADBF3xmr-APmhlAAAEKjMb1tw191.png","user_id":"112"}]
         * totalElements : 276
         * totalPages : 28
         * last : false
         * number : 0
         * size : 10
         * sort : null
         * numberOfElements : 10
         * first : true
         */

        public String totalElements;
        public int totalPages;
        public boolean last;
        public int number;
        public int size;
        public Object sort;
        public int numberOfElements;
        public boolean first;
        public List<ContentBean> content;

        /**
         * 获取totalElements
         *
         * @return totalElements
         */
        public String getTotalElements() {
            return totalElements;
        }

        public void setTotalElements(String totalElements) {
            this.totalElements = totalElements;
        }

        /**
         * 获取totalPages
         *
         * @return totalPages
         */
        public int getTotalPages() {
            return totalPages;
        }

        public void setTotalPages(int totalPages) {
            this.totalPages = totalPages;
        }

        /**
         * 获取last
         *
         * @return last
         */
        public boolean getLast() {
            return last;
        }

        public void setLast(boolean last) {
            this.last = last;
        }

        /**
         * 获取number
         *
         * @return number
         */
        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        /**
         * 获取size
         *
         * @return size
         */
        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        /**
         * 获取sort
         *
         * @return sort
         */
        public Object getSort() {
            return sort;
        }

        public void setSort(Object sort) {
            this.sort = sort;
        }

        /**
         * 获取numberOfElements
         *
         * @return numberOfElements
         */
        public int getNumberOfElements() {
            return numberOfElements;
        }

        public void setNumberOfElements(int numberOfElements) {
            this.numberOfElements = numberOfElements;
        }

        /**
         * 获取first
         *
         * @return first
         */
        public boolean getFirst() {
            return first;
        }

        public void setFirst(boolean first) {
            this.first = first;
        }

        /**
         * 获取content
         *
         * @return content
         */
        public List<ContentBean> getContent() {
            return content;
        }

        public void setContent(List<ContentBean> content) {
            this.content = content;
        }

        @JsonIgnoreProperties(ignoreUnknown = true)
        public static class ContentBean {
            /**
             * id : 63
             * plugin_name : 检验字段的值
             * plugin_meta_id : SIMPLE_EVAL1
             * plugin_type_code_str : JobEntry
             * version : 1.0.0.0
             * description : 检验字段的值
             * download_number : null
             * avg_score : null
             * plugin_size : 812668
             * charge_type : 0
             * plugin_path : null
             * icon_path : group1/M00/00/24/CgoMaF9q626AGgG3AAAEvQ2oSmo673.svg
             * user_id : 117
             */

            public String id;
            public String plugin_name;
            public String plugin_meta_id;
            public String plugin_type_code_str;
            public String version;
            public String description;
            public Object download_number;
            public Object avg_score;
            public String plugin_size;
            public int charge_type;
            public Object plugin_path;
            public String icon_path;
            public String user_id;
            public String real_name;
            public BigDecimal integral;

            /**
             * 获取integral
             *
             * @return integral
             */
            public BigDecimal getIntegral() {
                return integral;
            }

            public void setIntegral(BigDecimal integral) {
                this.integral = integral;
            }

            /**
             * 获取id
             *
             * @return id
             */
            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            /**
             * 获取real_name
             *
             * @return real_name
             */
            public String getReal_name() {
                return real_name;
            }

            public void setReal_name(String real_name) {
                this.real_name = real_name;
            }

            /**
             * 获取plugin_name
             *
             * @return plugin_name
             */
            public String getPlugin_name() {
                return plugin_name;
            }

            public void setPlugin_name(String plugin_name) {
                this.plugin_name = plugin_name;
            }

            /**
             * 获取plugin_meta_id
             *
             * @return plugin_meta_id
             */
            public String getPlugin_meta_id() {
                return plugin_meta_id;
            }

            public void setPlugin_meta_id(String plugin_meta_id) {
                this.plugin_meta_id = plugin_meta_id;
            }

            /**
             * 获取plugin_type_code_str
             *
             * @return plugin_type_code_str
             */
            public String getPlugin_type_code_str() {
                return plugin_type_code_str;
            }

            public void setPlugin_type_code_str(String plugin_type_code_str) {
                this.plugin_type_code_str = plugin_type_code_str;
            }

            /**
             * 获取version
             *
             * @return version
             */
            public String getVersion() {
                return version;
            }

            public void setVersion(String version) {
                this.version = version;
            }

            /**
             * 获取description
             *
             * @return description
             */
            public String getDescription() {
                return description;
            }

            public void setDescription(String description) {
                this.description = description;
            }

            /**
             * 获取download_number
             *
             * @return download_number
             */
            public Object getDownload_number() {
                return download_number;
            }

            public void setDownload_number(Object download_number) {
                this.download_number = download_number;
            }

            /**
             * 获取avg_score
             *
             * @return avg_score
             */
            public Object getAvg_score() {
                return avg_score;
            }

            public void setAvg_score(Object avg_score) {
                this.avg_score = avg_score;
            }

            /**
             * 获取plugin_size
             *
             * @return plugin_size
             */
            public String getPlugin_size() {
                return plugin_size;
            }

            public void setPlugin_size(String plugin_size) {
                this.plugin_size = plugin_size;
            }

            /**
             * 获取charge_type
             *
             * @return charge_type
             */
            public int getCharge_type() {
                return charge_type;
            }

            public void setCharge_type(int charge_type) {
                this.charge_type = charge_type;
            }

            /**
             * 获取plugin_path
             *
             * @return plugin_path
             */
            public Object getPlugin_path() {
                return plugin_path;
            }

            public void setPlugin_path(Object plugin_path) {
                this.plugin_path = plugin_path;
            }

            /**
             * 获取icon_path
             *
             * @return icon_path
             */
            public String getIcon_path() {
                return icon_path;
            }

            public void setIcon_path(String icon_path) {
                this.icon_path = icon_path;
            }

            /**
             * 获取user_id
             *
             * @return user_id
             */
            public String getUser_id() {
                return user_id;
            }

            public void setUser_id(String user_id) {
                this.user_id = user_id;
            }
        }
    }
}
